package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PrivateLetter;
import java.util.List;

public interface PrivateLetterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PrivateLetter record);

    PrivateLetter selectByPrimaryKey(Long id);

    List<PrivateLetter> selectAll();

    int updateByPrimaryKey(PrivateLetter record);

    List<PrivateLetter> getNoReaderByUserId(Long id);

    int getCountofNoReader(Long id);
    void setLetterToreader(Long id);
}